import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getGroupbuy = {
    getGroupbuyCate(params) {
        return axios.post(`${base.bd}/admin/group_buy_cate/lists`, qs.stringify(params));
    },
    addGroupbuyCate(params) {
        return axios.post(`${base.bd}/admin/group_buy_cate/saveadd`, qs.stringify(params));
    },
    updateGroupbuyCate(params) {
        return axios.post(`${base.bd}/admin/group_buy_cate/saveedit`, qs.stringify(params));
    },
    deleteGroupbuyCate(params) {
        return axios.post(`${base.bd}/admin/group_buy_cate/del`, qs.stringify(params));
    },
    getGroupbuyPhase(params) {
        return axios.post(`${base.bd}/admin/group_buy/lists`, qs.stringify(params));
    },
    getGroupbuyPeople(params) {
        return axios.post(`${base.bd}/admin/group_buy/lists_people`, qs.stringify(params));
    },
    getGroupbuyCateAll(params) {
        return axios.post(`${base.bd}/admin/group_buy_cate/lists_all`, qs.stringify(params));
    },
    editGroupBbuy(params) {
        return axios.post(`${base.bd}/admin/activity/edit_group_buy`, qs.stringify(params));
    },
    getProductList(params) {
        return axios.post(`${base.bd}/admin/product/lists`, qs.stringify(params));
    },
    add_group_buy(params) {
        return axios.post(`${base.bd}/admin/page/add_group_buy`, qs.stringify(params));
    },
    del_group_buy(params) {
        return axios.post(`${base.bd}/admin/page/del_group_buy`, qs.stringify(params));
    },
    group_buy_sort(params) {
        return axios.post(`${base.bd}/admin/page/group_buy_sort`, qs.stringify(params));
    },
    group_buy_cate_fail(params) {
        return axios.post(`${base.bd}/admin/group_buy_cate/fail`, qs.stringify(params));
    }
};
export default getGroupbuy;